<?php

/**
* receiptBook Model
*/
class Receiptbook extends AppModel
{
	var $name = 'Receiptbook';
	
	var $belongsTo = array('Company' =>
                           array('className'  => 'Company',
                                 'conditions' => '',
                                 'order'      => '',
                                 'foreignKey' => 'company_id'
                           )
                     );
					 
	var $hasMany = array('Funding' =>
                         array('className'     => 'Funding',
                               'conditions'    => '',
                               'order'         => '',
                               'limit'         => '',
                               'foreignKey'    => 'receiptbook_id',
                               'dependent'     => true,
                               'exclusive'     => false,
                               'finderQuery'   => ''
                         )
                    );

	var $validate = array(
	  'name' => VALID_NOT_EMPTY,
	  'amount' => VALID_NOT_EMPTY
	);
}

?>